package com.aizuda.boot.modules.business.counterparty.entity.dto;


import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Min;
import lombok.Data;

import java.util.List;

@Data
@Schema(description = "交易方查询请求")
public class CounterpartyQueryReqDTO {

    @Schema(description = "交易方名称（模糊匹配）")
    private String keyword;

    @Schema(description = "当前页码", required = true, example = "1")
    @Min(value = 1, message = "页码必须大于0")
    private Integer pageNum = 1;

    @Schema(description = "每页条数", required = true, example = "10")
    @Min(value = 1, message = "每页条数必须大于0")
    private Integer pageSize = 10;

    @Schema(description = "交易方性质列表")
    private List<Integer> counterpartyNature;

    @Schema(description = "注册国家代码")
    private List<String> registerCountry;

    @Schema(description = "是否启用(0:停用,1:启用)")
    private Boolean isEnabled;

    @Schema(description = "是否关联方(0:否,1:是)")
    private Boolean isRelatedParty;

    @Schema(description = "是否风险(0:否,1:是)")
    private Boolean isRisk;

    @Schema(description = "风险类型")
    private List<Integer> riskType;

    @Schema(description = "租户key")
    private String sysTenantKey;
} 